Dd, split, csplit command, ddsplitcsplit command
Directory:
1.1 dd command
1.2 split command
1.3 csplit command
The most common tool for file generation and slicing in Linux is dd, which provides comprehensive functions, but cannot extract file data
Linux Split commandFunction Description: Cut the file.Syntax: Split [--help][--version][-][-b ][-c ][-l ][files to be cut [output FILENAME] "prefix"Additional note: Split can cut the file into smaller files, with a preset of 1000 lines cut into a
Split is not good to use, but it can be used for a while!There are two ways to split, press a fixed number of rows, and press a fixed size. The default is 1000 lines, suffix length is 2, suffix length n is said, the Shard from the minimum value of n
I. Special symbols in the shellWhile you are learning Linux, you may have been exposed to a special symbol, such as "*", which is a wildcard symbol that represents 0 or more characters or numbers.Special characters that are commonly used:1, *
First, special symbols*: any of any characters1*1bak.zip 1. Tar 1. zip.bz21:1. TXT 21*2? : An arbitrary character2? Tar 2. Tar#: Notes[[Email protected] ~\: de-intention[Email protected] ~]# a=3~]# echo $a3~"\ $a "$a|: Pipe SymbolThe function of
cut extracts text and outputs-D Specify delimiter-C in CharactersThe part of the-F partition after DExample:1-d and-F useRemove to: As delimiter, part 2nd[Email protected] tmp]# echo ni:hao|cut-d ":"-f2Hao2-c useTake a 2nd character[Email protected]
A. Split description
Split can be used to cut a log file, making it easier to process logs. For example, there is a 12G log, you need to delete a row of data, know the line number, but with the SED and vi relatively slow,
You can cut the split
Split files and merge files in linux-general Linux technology-Linux technology and application information. For more information, see the following. Split files using split
Usage: split [Option]... [file]
Split the input content into fixed-size
/// /// Obtain the first letter (uppercase) of the character string based on the Chinese character, including the polyphonic words/// /// /// Public static string GetFirstSpellByChinese (string chineseStr){Int I, j, k, m;String tmpStr;String
Shell Special Symbol Cut commandShell Special Symbols* *任意个任意字符* ?任意一个字符* #注释字符* \脱义字符* |管道符Command cutcut is used to intercept a field in the form of: #cut –d ' separator character ' [-cf]n,n is a number.Options:- D is followed by a delimiter, and
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.